package qlsl.androiddesign.view.subview.commonview;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.qlsl.androiddesign.kuaiwa.R;

import android.view.View;
import android.widget.EditText;
import qlsl.androiddesign.activity.commonactivity.TestActivity;
import qlsl.androiddesign.activity.subactivity.Test2Activity;
import qlsl.androiddesign.adapter.commonadapter.ForeignLoginGridAdapter;
import qlsl.androiddesign.view.baseview.FunctionView;

public class Test2View extends FunctionView<Test2Activity> {
	EditText test;

	public Test2View(Test2Activity activity) {
		super(activity);
	}

	protected void initView(View view) {
	}

	public void setGridViewData() {
		Integer[] icons = new Integer[] { R.drawable.umeng_socialize_qq_on,
				R.drawable.umeng_socialize_wechat,
				R.drawable.umeng_socialize_sina_on };
		String[] texts = new String[] { "QQ", "微信", "微博" };
		List<HashMap<String, Object>> list = new ArrayList<HashMap<String, Object>>();
		for (int index = 0; index < icons.length; index++) {
			HashMap<String, Object> map = new HashMap<String, Object>();
			map.put("icon", icons[index]);
			map.put("text", texts[index]);
			list.add(map);
		}
		ForeignLoginGridAdapter adapter = new ForeignLoginGridAdapter(activity,
				list);
		activity.setAdapter(adapter);
	}

	protected void initData() {
	}

	protected void initListener() {

	}

	public <T> void showData(T... t) {

	}

	public <T> void showNoData(T... t) {

	}

	public void onClick(View view) {

	}

}
